﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace School
{
    class Teacher:Info
    {   public int Id;
        public string Name;
        public string Sex;
        public int Cardid;
        public int Tel;
        public string Title;
        public string Wageno;
        //public string Title { get; set; }
        //public string Wageno { get; set; }

        public Teacher()
        {
            this.Id = Id;
            this.Name = Name;
            this.Sex = Sex;
            this.Cardid = Cardid;
            this.Tel = Tel;
            this.Title = Title;
            this.Wageno = Wageno;
        }


        //public void output2()
        //{
        //    Console.WriteLine("职称：" + Title);
        //    Console.WriteLine("工资号：" + Wageno);
        //}
        public void output2()
        {
            Console.WriteLine("我的编号是{0},姓名是{1},性别是{2},身份证号是{3},联系方式是{4},职称是{5},工资号是{6}"
                , this.Id, this.Name, this.Sex, this.Cardid, this.Tel, this.Title, this.Wageno);
        }
    }
}
